X-Git-Url: http://git.cyclocoop.org/%27%20.%20%24prefix%20.%20Wiki::transformTitleToURI%28%24matches%5B1%5D%29%20.%20%27?a=blobdiff_plain;f=includes%2Fuser%2FUserArray.php;h=dddc850bd034304983dd70747c61e7f45701b8da;hb=950cf6016c10953213e5f985dfc18a32d8673197;hp=a4d43562af641557bed02db90e7800343bf03d0a;hpb=bdacaaca42282f674ded32508e4c2587caa721fb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/user/UserArray.php b/includes/user/UserArray.php index a4d43562af..dddc850bd0 100644 --- a/includes/user/UserArray.php +++ b/includes/user/UserArray.php @@ -46,7 +46,7 @@ abstract class UserArray implements Iterator { // Database::select() doesn't like empty arrays return new ArrayIterator( [] ); } - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $res = $dbr->select( 'user', User::selectFields(), @@ -67,7 +67,7 @@ abstract class UserArray implements Iterator { // Database::select() doesn't like empty arrays return new ArrayIterator( [] ); } - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_REPLICA ); $res = $dbr->select( 'user', User::selectFields(),